/**
 * 定义一个猪类 调用了两个接口
 */
public class Pig implements Run,Fly {
    public void Run(){
        System.out.println("会跑的猪");
    }


    public void fly(){
        System.out.println("会飞的猪");
    }

    public static void main(String[] args) {
        Pig pig = new Pig();
        pig.fly();
        pig.Run();
    }
}
